<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="estilos/style.css" rel="stylesheet" type="text/css" />
<%@ taglib prefix="s" uri="/struts-tags"%>
<title>LABTEC - Nuevo usuario</title>
</head>
<body>
	<div id="header">
		    <jsp:include page="menuAdministrador.jsp" />
	</div>
	<div class="sheet">
		<div class="sheet-tl"></div>
		<div class="sheet-tr"></div>
		<div class="sheet-bl"></div>
		<div class="sheet-br"></div>
		<div class="sheet-tc"></div>
		<div class="sheet-bc"></div>
		<div class="sheet-cl"></div>
		<div class="sheet-cr"></div>
		<div class="sheet-cc"></div>
		<div class="sheet-body">
			<!-- ********************* LOGUEO DE ERRORES *********************-->
			<s:if test="hasActionErrors()">
				<div class="error">
					<s:actionerror /></div>
			</s:if>
			<s:if test="hasFieldErrors()">
				<div class="error">
					<s:fielderror/></div>
			</s:if>
			<h5 class="postcontent">Agregar nuevo Usuario</h5>
			<br />

			<!-- ********************* FORM *********************-->
					<s:form action="altaUsuarioAction">
				<p>&nbsp;</p>
				<table width="100%">
					<tr>
						<td><s:textfield label="Nombre de usuario" name="nombre" required="true" maxlength="20"/></td>
						<td><s:textfield label="Contraseña" name="contrasenia" required="true" maxlength="20" /></td>
					</tr>
					<tr>
						<td><s:textfield label="Mail" name="mail" required="true" maxlength="40" /></td>
						<td> 
						 <s:select  label="Tipo de Permiso" name="tipoPermisoElegido" required="true"  list="permisosCodigos"></s:select> </td>
					</tr>
					<tr align="left">	
					<s:doubleselect label="Departamento - Laboratorio" 
					name="codDepartamento"       list="labXdepto.keySet()"
					doubleName="codLaboratorio" doubleList="labXdepto.get(top)" />
					
					</tr>
					<tr></tr>
					<tr align="right">
						<td colspan="4">
						<s:submit title="Haga clic aquí para agregar al usuario" value="Guardar"/></td>
					</tr>
				</table>
				<p>&nbsp;</p>
			</s:form>
		</div>
	</div>
</body>
</html>